package com.jy.api.util;

/**
 * Created by lihu on 2017/10/16.
 */
public class WechatUtil {

    /**
     * 优惠卷调整地址
     */
    public static final String COUPON_INDEX = "https://admin.huoxingy.com/static/shareCoupon/index.html?openid=OPENID&type=TYPE&id=ID";


    /**
     * 优惠卷分享入口
     */
    public static final String MEMBER_COUPON = "API_GATEWAY_URL/wechat/member/share-coupon";


    /**
     * 会员端 入口回调接口地址
     */
    public static final String MEMBER_BACK = "API_GATEWAY_URL/wechat/member/openid";

    /**
     * 会员端 入口回调接口地址
     */
    public static final String MEMBER_TABLE_NO_BACK = "API_GATEWAY_URL/wechat/member/openid?tableNo=TABLENO";
    /**
     * 模版消息发送地址
     */
    public static final String TEMPLATE_URL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";


    /**
     * 店员宝登陆接口
     */
    public static final String CLERK_URL = "https://clerk.huoxingy.com/#/login?openid=OPENID";

    /**
     * 后台登陆接口
     */
    public static final String ADMIN_URL = "https://boss.huoxingy.com?openid=OPENID#/store";

    /**
     * 绑定二维码的地址
     */
    public static final  String OPEN_URL="https://boss.huoxingy.com/static/attentionSuc/index.html";


    /**
     * 网页授权 url
     */
    public static final String CALLBACK_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?" +
            "appid=APPID&redirect_uri=REDIRECT_URI" +
            "&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";

    /**
     * 获取openid
     */
    public static final String OPEN_ID_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&" +
            "secret=SECRET&code=CODE&grant_type=authorization_code";

    public static final String CALL_BACK = "https://prod-api.huoxingy.com/wechat/openid";

    public static final String OPEN_CALL_BACK = "https://prod-api.huoxingy.com/wechat/openid?storeId=STOREID";

    //会员完善资料界面
    public static final String MEBER_DATA1_URL = "https://admin.huoxingy.com/static/addVip_old/index.html?openId=OPENID";


    //会员完善资料界面
    public static final String MEBER_DATA_URL = "https://admin.huoxingy.com/static/addVip/index.html?memberId=MEMBERID&couponInstanceId=COUPONINSTANCEID";

    /**
     * 交班详情报表页面
     */
    public static final String WORK_SHIFT_REPORT = "https://admin.huoxingy.com/static/changeWorkDetail/index.html?workShiftId=WORK_SHIFT_ID";

    /**
     * 周环比日报表页面
     */
    public static final String TRANSACTION_OVERVIEW = "https://admin.huoxingy.com/static/ringReport/index.html?storeId=%s&storeName=%s&startTime=%s";


    /**
     * 订单详情页面
     */
    public static final String ORDER_DETAILS = "https://admin.huoxingy.com/static/vipCostDetail/index.html?orderId=ORDER_ID";


    /**
     * 优惠卷详情页面
     */
    public static final String COUPON_DETAILS = "https://membership.huoxingy.com/static/cpDetail/index.html?id=COUPON_INSTAN_ID";


    /**
     * 火星铺手优惠卷页面跳转
     */
    public static final String HXBS_COUPON_URL = "https://membership.huoxingy.com/?openId=OPENID#index/coupon";


    /**
     * 火星铺手消费记录页面跳转
     */
    public static final String HXBS_ORDER_URL = "https://membership.huoxingy.com/?openId=OPENID#index/order";


    /**
     * 火星铺手我的页面跳转
     */
    public static final String HXBS_MY_URL = "https://membership.huoxingy.com/?openId=OPENID#index/my";


    /**
     * 安全登陆
     */
    public static final String WEB_LOGIN_URL = "https://admin.huoxingy.com/static/memberLogin/index.html?openId=OPENID&orderId=ORDER_ID";

    public static final String line = "https://admin.huoxingy.com/static/getSite/index.html?id=";
    /**
     * 会员支付
     */
    public static final String WEB_MEMBER_PAY_URL = "https://admin.huoxingy.com/static/surePay/index.html?openId=OPENID&orderId=ORDER_ID";


    /**
     * 微信点单页面跳转
     */
    public static final String WEIXIN_ORDER_URL = "https://wechat-order.huoxingy.com?openId=OPENID&storeId=STORE_ID&tableNo=TABLE_NO";

    /**
     * 活动详情界面
     */
    public static final String ACTIVITY_URL = "https://admin.huoxingy.com/static/shopActivity/index.html?id=ID";
}
